// stores/userStore.js
import { create } from 'zustand';

const useUserStore = create((set) => ({
  user: null,
  userInfoState: null, // 添加这个状态以匹配原有代码
  setUser: (user) => set({ user }),
  setUserInfoState: (userInfoState) => set({ userInfoState }), // 添加这个方法
  clearUser: () => set({ user: null, userInfoState: null })
}));

export default useUserStore;